import Vue from 'vue'
import Router from 'vue-router'
import app_index from '@/components/app_index'
import category from '@/components/category'
import add from '@/components/add'
import contact from '@/components/contact'
import mine from '@/components/mine'
import login from '@/components/login'
import register from '@/components/register'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'app_index',
      component: app_index
    },
    {
      path: '/category',
      name: 'category',
      component: category
    },
    {
      path: '/add',
      name: 'add',
      component: add
    },
    {
      path: '/contact',
      name: 'contact',
      component: contact
    },
    {
      path: '/mine',
      name: 'mine',
      component: mine
    },
    {
      path:"/login",
      name:"login",
      component:login
    },
    {
      path:"/register",
      name:"register",
      component:register
    }
  ]
})
